# a=[1,2,3,'a','b','c']
# print(a[2:])
# print(a[3:7])
# print(a[:-1])
# print(a[-1:])
#list1=[1,2,3,4]
# list1 =(1,2,3,4)
#print(list1)
# dict1={'a':1,'b':2}
#print("%s"%list1)
# print("%s"%dict1)
# t1 = (1,3,3,3)
#print(t1)
from time import ctime, sleep

def timefun_arg(pre="hello"):
    print("timefun_arg")
    def timefun(func):
        print("timefun")
        def wrappedfunc():
            print("%s called at %s %s"%(func.__name__, ctime(), pre))
            return func()
        return wrappedfunc
    return timefun

@timefun_arg("itcast")
def foo():
    print("I am foo")

@timefun_arg("python")
def too():
    print("I am too")

foo()
sleep(2)
foo()

too()
sleep(2)
too()
